<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
	
	// var arr = ['北京','深圳','广州',"珠海"];
	// var diqu = ['福田','平山','罗湖'];

	// arr[1]=diqu;

	arr = [56,56,45,8,45,34,90,56];
	temp = 0;
	for (var i = 0; i < arr.length; i++) {
		temp = temp+arr[i];
	};


	// str = "Hello world!";
	// // str = "!dlrow olleH";
	// temp = "";
	// for (var i = str.length - 1; i >= 0; i--) {
	// 	temp =temp + str[i];
	// };
	// document.write(temp);

	window.onload = function  () {
		
		box = document.getElementById('box');

		box.onclick = function  () {
			box.style.width="400px";
			box.style.height="400px";
		}

	}






	</script>
	<style type="text/css">
		.box{
			width: 200px;
			height: 200px;
			background: red url() 0 0 no-repeat;
		}


	</style>
</head>
<body>
	<p id="box" class="box"> </p>
</body>
</html>